<template>
    <div>
      <div class="bg-white grid-content">
        <div style="overflow: hidden; ">
          <div class="mytitle"><svg-icon icon-class="Kjxcshrb" class="myIcon" /> 矿级形成审核日报</div>
        </div>
        <!-- 表格 -->
        <el-table :data="tableData" border style="width: 100%" :header-cell-style="{background:'#F5F7FA',color:'#909399'}">
          <el-table-column fixed type="index" label="序号" :index="indexMethod">
          </el-table-column>
          <el-table-column fixed align="center" prop="rq" label="日期">
            </el-table-column>
          <el-table-column  fixed align="center" prop="zyq" label="作业区">
            </el-table-column>
            <el-table-column  fixed align="center" prop="zcb" label="注采班">
            </el-table-column>
  
            <el-table-column align="center" label="昨日数据">
              <el-table-column align="center" prop="jlj" label="计量间">
              </el-table-column>
                <el-table-column align="center" label="计量间压力与温度">
                  <el-table-column align="center" prop="zrzcsyl" label="总掺水压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="zrzcswd" label="总掺水温度（℃）">
                  </el-table-column>
                  <el-table-column align="center" prop="zrzhyyl" label="总回油压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="zrzyhwd" label="总回油温度（℃）">
                  </el-table-column>
                </el-table-column>
              <el-table-column align="center" prop="jyh" label="集油环">
              </el-table-column>
              <el-table-column align="center" label="集油环压力与温度">
                  <el-table-column align="center" prop="zrcsyl" label="掺水压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="zrcswd" label="掺水温度（℃）">
                  </el-table-column>
                  <el-table-column align="center" prop="zrhyyl" label="回油压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="zrhywd" label="回油温度（℃）">
                  </el-table-column>
                </el-table-column>
            </el-table-column>
  
            <el-table-column align="center" label="今日数据">
              <el-table-column align="center" prop="jlj" label="计量间">
              </el-table-column>
                <el-table-column align="center" label="计量间压力与温度">
                  <el-table-column align="center" prop="zcsyl" label="总掺水压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="zcswd" label="总掺水温度（℃）">
                  </el-table-column>
                  <el-table-column align="center" prop="zhyyl" label="总回油压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="zyhwd" label="总回油温度（℃）">
                  </el-table-column>
                </el-table-column>
              <el-table-column align="center" prop="jyh" label="集油环">
              </el-table-column>
              <el-table-column align="center" label="集油环压力与温度">
                  <el-table-column align="center" prop="csyl" label="掺水压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="cswd" label="掺水温度（℃）">
                  </el-table-column>
                  <el-table-column align="center" prop="csyl" label="回油压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="cswd" label="回油温度（℃）">
                  </el-table-column>
                </el-table-column>
            </el-table-column>
  
            <el-table-column align="center" label="（今日-昨日）差值">
              <el-table-column align="center" prop="jlj" label="计量间">
              </el-table-column>
                <el-table-column align="center" label="计量间压力与温度">
                  <el-table-column align="center" prop="jzrzcsyl" label="总掺水压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="jzrzcswd" label="总掺水温度（℃）">
                  </el-table-column>
                  <el-table-column align="center" prop="jzrhyyl" label="总回油压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="jzrhywd" label="总回油温度（℃）">
                  </el-table-column>
                </el-table-column>
              <el-table-column align="center" prop="jyh" label="集油环">
              </el-table-column>
              <el-table-column align="center" label="集油环压力与温度">
                  <el-table-column align="center" prop="jzrcsyl" label="掺水压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="jzrcswd" label="掺水温度（℃）">
                  </el-table-column>
                  <el-table-column align="center" prop="jzrhyyl" label="回油压力（MPa)">
                  </el-table-column>
                  <el-table-column align="center" prop="jzrhywd" label="回油温度（℃）">
                  </el-table-column>
                </el-table-column>
            </el-table-column>
  
            <el-table-column align="center" prop="jh" label="井号">
            </el-table-column>
            <el-table-column align="center" prop="bz" label="备注">
            </el-table-column>
            <el-table-column align="center" prop="shr" label="审核人">
            </el-table-column>
            <!-- 审核页面 -->
            <el-table-column align="center" fixed="right" prop="approveStatus" label="审核状态">
              <template slot-scope="scope">
                <el-tooltip :content="scope.row.approveBz" placement="bottom" effect="light" :disabled="!scope.row.approveBz">
                <el-badge :is-dot="scope.row.approveBz!=''&&scope.row.approveBz!=null" class="item">
                <el-tag :class="scope.row.approveBz?'tagstyle':''"
                :type="
                  scope.row.approveStatus == '2'
                    ?'success'
                    :scope.row.approveStatus == '1'
                      ? 'warning'
                      : scope.row.approveStatus == '0'
                        ? 'info'
                        : 'danger'"
                  disable-transitions>{{
                  scope.row.approveStatus == '2'
                  ?'已通过'
                  :scope.row.approveStatus == '1'
                    ? '未审核'
                    : scope.row.approveStatus == '0'
                      ? '未提交'
                      : '未通过'
                }}</el-tag>
                </el-badge>
              </el-tooltip>
              </template>
          </el-table-column>

          <el-table-column align="center" fixed="right" label="操作" width="100" >
            <template slot-scope="scope">
              <el-button @click="handleClick(scope.row, 'check')" type="text" >查看</el-button>
              <el-button @click="handleClick(scope.row, 'edit')" type="text" >编辑</el-button>
            </template>
          </el-table-column>
        </el-table>
        <!-- 分页器 -->
        <el-pagination align='right'
            background
            @size-change="handleSizeChange" 
            @current-change="handleCurrentChange" 
            :current-page="pageNo"
            :page-sizes="[5,10, 20, 30, 40, 50]" 
            :page-size="pageSize" 
            layout="total, sizes, prev, pager, next, jumper"
            :total="total">
          </el-pagination>
      </div>
  
      <!-- 弹出框 -->
      <el-dialog :title="myDialogTitle" :visible.sync="dialogFormVisible" :before-close="handleClose" custom-class="saveAsDialog">
  
        <el-form :inline="true" :model="KjxcshrbForm" class="demo-form-inline" :rules="rules" ref="KjxcshrbForm" :disabled="isInput" label-position="left" label-width="180px" >
          <!-- <el-divider content-position="left">基础信息</el-divider> -->
          <el-row>
            <el-col :span="12">
              <el-form-item label-position="left" label-width="180px" label="作业区:" prop="zyq">
                <el-input v-model="KjxcshrbForm.zyq" placeholder="请输入作业区"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="注采班:" prop="zcb">
                <el-input v-model="KjxcshrbForm.zcb" placeholder="请输入注采班"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-divider content-position="left">昨日数据</el-divider>
          <el-row>
            <el-col :span="12">
              <el-form-item label="计量间:" prop="zrjlj">
                <el-input v-model="KjxcshrbForm.zrjlj" placeholder="请输入计量间"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="总掺水压力（MPa):">
                <el-input v-model="KjxcshrbForm.zrzcsyl" placeholder="请输入总掺水压力（MPa)"></el-input>
              </el-form-item>
            </el-col>  
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="总掺水温度（℃）">
                <el-input v-model="KjxcshrbForm.zrzcswd" placeholder="请输入总掺水温度（℃）"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="总回油压力（MPa):">
                <el-input v-model="KjxcshrbForm.zrzyhwd" placeholder="请输入总回油压力（MPa)"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="集油环:">
                <el-input v-model="KjxcshrbForm.zrjyh" placeholder="请输入集油环"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="掺水压力（MPa):">
                <el-input v-model="KjxcshrbForm.zrcsylr" placeholder="请输入掺水压力（MPa)"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="掺水温度（℃）:">
                <el-input v-model="KjxcshrbForm.zrcswd" placeholder="请输入掺水温度（℃）"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="回油压力（MPa):">
                <el-input v-model="KjxcshrbForm.zrhyyl" placeholder="请输入回油压力（MPa)"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>      
            <el-col :span="12">
              <el-form-item label="回油温度（℃）:">
                <el-input v-model="KjxcshrbForm.zrhywd" placeholder="请输入回油温度（℃）"></el-input>
              </el-form-item>
            </el-col>
          
          </el-row>
  
          <el-divider content-position="left">今日数据</el-divider>
          <el-row>
            <el-col :span="12">
              <el-form-item label="计量间:" prop="jlj">
                <el-input v-model="KjxcshrbForm.jlj" placeholder="请输入计量间"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="总掺水压力（MPa):">
                <el-input v-model="KjxcshrbForm.zcsyl" placeholder="请输入总掺水压力（MPa)"></el-input>
              </el-form-item>
            </el-col>  
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="总掺水温度（℃）">
                <el-input v-model="KjxcshrbForm.zcswd" placeholder="请输入总掺水温度（℃）"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="总回油压力（MPa):">
                <el-input v-model="KjxcshrbForm.zyhwd" placeholder="请输入总回油压力（MPa)"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="集油环:">
                <el-input v-model="KjxcshrbForm.jyh" placeholder="请输入集油环"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="掺水压力（MPa):">
                <el-input v-model="KjxcshrbForm.csylr" placeholder="请输入掺水压力（MPa)"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="掺水温度（℃）:">
                <el-input v-model="KjxcshrbForm.cswd" placeholder="请输入掺水温度（℃）"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="回油压力（MPa):">
                <el-input v-model="KjxcshrbForm.hyyl" placeholder="请输入回油压力（MPa)"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="回油温度（℃）:">
                <el-input v-model="KjxcshrbForm.hywd" placeholder="请输入回油温度（℃）"></el-input>
              </el-form-item>
            </el-col>
          
          </el-row>
  
          <el-divider content-position="left">（今日-昨日）差值</el-divider>
          <el-row>
            <el-col :span="12">
              <el-form-item label="计量间:" prop="jzrjlj">
                <el-input v-model="KjxcshrbForm.jzrjlj" placeholder="请输入计量间"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="总掺水压力（MPa):">
                <el-input v-model="KjxcshrbForm.jzrzcsyl" placeholder="请输入总掺水压力（MPa)"></el-input>
              </el-form-item>
            </el-col>  
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="总掺水温度（℃）">
                <el-input v-model="KjxcshrbForm.jzrzcswd" placeholder="请输入总掺水温度（℃）"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="总回油压力（MPa):">
                <el-input v-model="KjxcshrbForm.jzrzyhwd" placeholder="请输入总回油压力（MPa)"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="集油环:">
                <el-input v-model="KjxcshrbForm.jzrjyh" placeholder="请输入集油环"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="掺水压力（MPa):">
                <el-input v-model="KjxcshrbForm.jzrcsylr" placeholder="请输入掺水压力（MPa)"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="掺水温度（℃）:">
                <el-input v-model="KjxcshrbForm.jzrcswd" placeholder="请输入掺水温度（℃）"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="回油压力（MPa):">
                <el-input v-model="KjxcshrbForm.jzrhyyl" placeholder="请输入回油压力（MPa)"></el-input>
              </el-form-item>
            </el-col> 
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="回油温度（℃）:">
                <el-input v-model="KjxcshrbForm.jzrhywd" placeholder="请输入回油温度（℃）"></el-input>
              </el-form-item>
            </el-col>
          
          </el-row>
          <el-divider content-position="left"></el-divider>
          <el-row>
            <el-col :span="12">
              <el-form-item label="井号:">
                <el-input v-model="KjxcshrbForm.jh" placeholder="请输入井号"></el-input>
              </el-form-item>
            </el-col> 
            <el-col :span="12">
              <el-form-item label="备注:">
                <el-input v-model="KjxcshrbForm.bz" placeholder="请输入备注"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="12">
              <el-form-item label="审核人:">
                <el-input v-model="KjxcshrbForm.shr" placeholder="请输入审核人"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
        <el-form v-show="!ischeck" :inline="true" :model="KjxcshrbForm" class="demo-form-inline" ref="KjxcshrbForm" label-position="left" label-width="80px">
        <el-form-item label="审核:" >
          <el-select v-model="KjxcshrbForm.approveStatus" placeholder="请选择审核状态">
            <!-- KjxcshrbForm.approveStatus=='0'? KjxcshrbForm.approveStatus == '未审核':KjxcshrbForm.approveStatus=='1'?KjxcshrbForm.approveStatus == '通过':KjxcshrbForm.approveStatus == '不通过' -->
            <el-option label="未审核" value="1"></el-option>
            <el-option label="通过" value="2"></el-option>
            <el-option label="不通过" value="3"></el-option>
          </el-select>
        </el-form-item>

        <el-row>
            <el-form-item label="审核备注:">
              <el-input v-model="KjxcshrbForm.approveBz" placeholder="请输入审核备注"></el-input>
            </el-form-item>
        </el-row>
      </el-form>
  
        <div slot="footer" class="dialog-footer" v-show="!ischeck">
          <el-button @click="close('KjxcshrbForm')">取 消</el-button>
          <el-button type="primary" @click="submitForm('KjxcshrbForm')">确 定</el-button>
        </div>
      </el-dialog>
    </div>
  </template>
  
  <script>
  import KjxcshrbApi from '@/api/sjtb/scgl/kjxcshrb';
  
  export default {
    data() {
      return {
        pageNo: 1, //当前页码
        pageSize: 10, //每页显示数量
        total: 0, //总数量
        // table数据
        tableData: [],
        //当前页码
        currentPage: 1,
        //表单填报的数据
        KjxcshrbForm: {
          id:'',
          approveStatus:'',//审核状态
          approveBz:'',//审核备注
          zyq: '',//作业区
          zcb: '',//注采班
  
          jlj:'',//计量间
          zrzcsyl: '',//总掺水压力（MPa)
          zrzcswd: '',//总掺水温度（℃）
          zrzhyyl: '',//总回油压力（MPa)
          zrzyhwd: '',//总回油温度（℃）
          zrjyh: '',//集油环
          zrcsyl: '',//掺水压力（MPa)
          zrcswd:'',//掺水温度（℃
          zrhyyl:'',//回油压力（MPa)
          zrhywd:'',//回油温度（℃)
  
          jlj:'',//计量间
          zcsyl: '',//总掺水压力（MPa)
          zcswd: '',//总掺水温度（℃）
          zhyyl: '',//总回油压力（MPa)
          zyhwd: '',//总回油温度（℃）
          jyh: '',//集油环
          csyl: '',//掺水压力（MPa)
          cswd:'',//掺水温度（℃
          hyyl:'',//回油压力（MPa)
          hywd:'',//回油温度（℃)
  
          jlj:'',//计量间
          jzrzcsyl: '',//总掺水压力（MPa)
          jzrzcswd: '',//总掺水温度（℃）
          jzrzhyyl: '',//总回油压力（MPa)
          jzrzyhwd: '',//总回油温度（℃）
          jzrjyh: '',//集油环
          jzrcsyl: '',//掺水压力（MPa)
          jzrcswd:'',//掺水温度（℃
          jzrhyyl:'',//回油压力（MPa)
          jzrhywd:'',//回油温度（℃)
  
          jh:'',//井号
          bz:'',//备注
          shr:'',//审核人
  
          },
        //验证规则
        rules: {
          zyq: [
            { required: true, message: '请输入作业区', trigger: 'zyq' },
          ],
          zcb: [
            { required: true, message: '请输入注采班', trigger: 'zcb' }
          ],
        },
        //时间快捷选择
        pickerOptions: {
          disabledDate(time) {
            return time.getTime() > Date.now();
          },
          shortcuts: [{
            text: '今天',
            onClick(picker) {
              picker.$emit('pick', new Date());
            }
          }, {
            text: '昨天',
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24);
              picker.$emit('pick', date);
            }
          }, {
            text: '一周前',
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit('pick', date);
            }
          }]
        },
        //获取当前日期
        currentTime:'',
        //编辑框是否显示
        dialogFormVisible: false,
        //弹出框是否是查看
        ischeck: false,
        //控制查看时不可更改数据
        isInput:false,
        //弹出框标题
        myDialogTitle: '',

      }
    },
    created(){
      this.search();
    },
    mounted(){
      this.filterTime();
      // this.initDate();
    },
    methods: {
      /**
      * 查询列表
      */
      async search() {
        // this.pageNo = pageNo; //当前页码
        // this.pageSize = pageSize; //每页显示数量
        //发送查询请求
        let res = await KjxcshrbApi.getKjxcshrbcompareList(this.pageNo,this.pageSize);
        //判断是否成功
        if(res.success){
          console.log(123456);
          console.log(res.data);
          //赋值
          this.tableData = res.data.records;
          //console.log(this.tableData[0].zyq);
          //总数量
          this.total = res.data.total;
        }
        // if(this.tableData[4].zyq==='第一作业区'){
        //   this.box=this.tableData[0];
        //   console.log(1111);
        //   console.log(this.box);
        // }
      },
      onSubmit() {
        console.log('submit!');
      },
      //关闭对话框
      handleClose(done) {      
        // 清空表单
        // this.$refs['KjxcshrbForm'].resetFields();
        // 清空表单校验，避免再次进来会出现上次校验的记录
        this.$refs['KjxcshrbForm'].clearValidate()
        done()
        
      },
      handleClose1(done) {  
        this.urlFile = ''  
        this.fileList =[];  
        done()     
      },
        // 弹框关闭触发
      close(formName) {
        this.dialogFormVisible = false;
        // 清空表单
        // this.$refs[formName].resetFields();
        // 清空表单校验，避免再次进来会出现上次校验的记录
        this.$refs[formName].clearValidate()
      },
  
      submitForm(formName) {
        //表单验证
        this.$refs[formName].validate(async (valid) => {
            if (valid) {
                let res = null;
                console.log(334345)
                console.log(this.KjxcshrbForm.id+"111")
                //判断菜单ID是否为空
                if (this.KjxcshrbForm.id === '') {
                  this.KjxcshrbForm.rq = this.currentTime;
                    //发送添加请求
                    res = await KjxcshrbApi.addKjxcshrb(this.KjxcshrbForm);
                } else {
                    //发送审核请求
                     //console.log(334345)
                    res = await KjxcshrbApi.updateKjxcshrb(this.KjxcshrbForm);
                }
                console.log(res)
                //判断是否成功
                if (res.success) {
                    //this.$message.success(res.message);
                    this.$message({ message: '修改审核状态成功！', type: 'success' });
                    //刷新
                    this.search();
                    //关闭窗口
                    this.dialogFormVisible = false;
                } else {
                  console.log(res)
                    this.$message.error(res.message);
                }
            }
        })
      },

      handleClick(row, handle) {
        // console.log(row.approveStatus);
        this.dialogFormVisible = true;
        if (handle == 'check') {
          this.myDialogTitle = '矿级形成审核日报'
          if(row.approveStatus==0){
          this.ischeckSh = true
          }else{
            this.ischeckSh = false
          } 
          this.ischeck = true
          this.isInput = true;// 1.表单禁用
          // this.KjxcshrbForm = row
          this.$objCopy(row, this.KjxcshrbForm);//把当前要编辑的数据复制到数据域，给表单回显
          this.$message({ message: '成功打开', type: 'success' });
        } else if (handle == 'edit') {
            if(row.approveStatus!=1){
              this.myDialogTitle = '矿级形成审核日报编辑'
              this.saveAsDialog = 'saveAsDialog2'
              this.ischeck = false  
              this.isInput = false     
              this.$objCopy(row, this.KjxcshrbForm);//把当前要编辑的数据复制到数据域，给表单回显
              this.KjxcshrbForm.approveStatus = row.approveStatus.toString()
            }else {
              this.dialogFormVisible = false;
              this.$message({ message: '已通过不可审核！', type: 'error' });
            }
        }
      },
     
      /*** 当每页数量发生变化时触发该事件 */
      handleSizeChange(size) {
        console.log(size);
        this.pageSize = size;
        //将每页显示的数量交给成员变量
        this.search(this.pageNo, size);
      },
      /*** 当页码发生变化时触发该事件 */
      handleCurrentChange(page) {
        console.log(page);
        this.pageNo = page;
        //调用查询方法
        this.search(page, this.pageSize);
      },
      // 序号计算
      indexMethod (index) {
      // index默认在0开始，这里+1
        return index + 1 + (this.pageNo - 1) * this.pageSize
      },
      // 获取当前日期
      filterTime() {
        var date = new Date();
        var y = date.getFullYear();
        var m = date.getMonth() + 1;
        m = m < 10 ? '0' + m : m;
        var d = date.getDate();
        d = d < 10 ? '0' + d : d;
        this.currentTime = y + '-' + m + '-' + d;
      },
    }
  }
  </script>
  
  <style lang="scss" scoped>
  // 标题
  .mytitle {
    font-size: large;
    padding-left: 10px;
    margin-bottom: 16px;
    float: left;
  }
  
  //按钮组
  .myButtons {
    float: right
  }
  
  //格子的样式
  .bg-white {
    background: #ffffff;
  }
  
  .grid-content {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
  }
  
  .calendar ::v-deep .el-button-group::before {
    display: none;
  }
  
  .calendar ::v-deep .el-button-group::after {
    display: none;
  }
  
  // 分割线样式
  .el-divider--horizontal {
    display: block;
    height: 2px;
    width: 100%;
    margin: 24px 0;
  }
  
  // 表单各项的样式
  .el-form-item {
    margin: 15px 10px 15px 10px;
  }
  
  //表单禁用字体样式
  .el-input.is-disabled ::v-deep .el-input__inner {
      color: #606266;
    }
  //对话框宽度
  // .customWidth{
  //         width:80%;
  //     }
  ::v-deep .saveAsDialog {
    width: 60% !important;
  }
  </style>